package com.benz.project.pvm.domain;


import javax.persistence.*;
import java.util.Date;
import java.util.List;

/**
 * null
 *
 * @author lanhui
 */
@Entity
@Table(name = "pvm_record_project")
public class Project {
    @Id
    @Column(name = "id")
    private String id;

    @Column(name = "name")
    private String name;

    @Column(name = "description")
    private String desc;

    @Column(name = "team")
    private String team;

    @Column(name = "start_time")
    private Date startTime;

    @Column(name = "end_time")
    private Date endTime;

    @Column(name = "status")
    private Integer status;

    /*//bi-directional many-to-many association to TMenu
    @ManyToMany(fetch=FetchType.EAGER)
    @JoinTable(
            name="pvm_project_role"
            , joinColumns={
            @JoinColumn(name="project_id")
    }
            , inverseJoinColumns={
            @JoinColumn(name="role_id")
    }
    )
    private List<Role> roles;

    //bi-directional many-to-many association to TMenu
    @ManyToMany(fetch=FetchType.EAGER)
    @JoinTable(
            name="pvm_project_role_person"
            , joinColumns={
                @JoinColumn(name="project_id")
            }
            , inverseJoinColumns={
                @JoinColumn(name="person_id")
            }
    )
    private List<Person> persons;*/


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getTeam() {
        return team;
    }

    public void setTeam(String team) {
        this.team = team;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    /*public List<Person> getPersons() {
        return persons;
    }

    public void setPersons(List<Person> persons) {
        this.persons = persons;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }*/
}
